﻿@{
    ViewData["Title"] = "Main";

}

<link href="~/layui/css/layui.css" rel="stylesheet" />
<script src="~/layui/layui.js"></script>
<a href="~/lib/jquery/dist/jquery.min.map">~/lib/jquery/dist/jquery.min.map</a>
<script src="~/lib/jquery/dist/jquery.min.js"></script>
<script src="~/lib/jquery/dist/jquery.js"></script>
<!DOCTYPE html>

<html>
<head>
    <meta charset="utf-8">
    <title>MES系统</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="//unpkg.com/layui@2.9.20/dist/css/layui.css" rel="stylesheet">
</head>
<body>
    <div class="layui-layout layui-layout-admin">
        <div class="layui-header">
            <div class="layui-logo layui-hide-xs layui-bg-black">MES系统</div>
            <!-- 头部区域（可配合layui 已有的水平导航） -->
            <ul class="layui-nav layui-layout-left">
                <!-- 移动端显示 -->
                <li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-header-event="menuLeft">
                    <i class="layui-icon layui-icon-spread-left"></i>
                </li>


            </ul>
            <ul class="layui-nav layui-layout-right">
                <li class="layui-nav-item layui-hide layui-show-sm-inline-block">
                    <a href="javascript:;">
                        <img src="//unpkg.com/outeres@0.0.10/img/layui/icon-v2.png" class="layui-nav-img">
                        tester
                    </a>
                    <dl class="layui-nav-child">
                        <dd>
                            <a href="javascript:;">

                                Profile
                            </a>
                        </dd>
                        <dd><a href="javascript:;">Settings</a></dd>
                        <dd><a href="javascript:;">Sign out</a></dd>
                    </dl>
                </li>
                .
                <li class="layui-nav-item" lay-header-event="menuRight" lay-unselect>
                    <a href="javascript:;">
                        <i class="layui-icon layui-icon-more-vertical"></i>
                    </a>
                </li>
            </ul>
        </div>
        <div class="layui-side layui-bg-black">
            <div class="layui-side-scroll">
                <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
                <ul class="layui-nav layui-nav-tree" lay-filter="test">
                    <li class="layui-nav-item layui-nav-itemed">
                        <a class="" href="javascript:">原料管理</a>
                        <dl class="layui-nav-child">
                            <dd><a href="/Ingredient/ShowIngredient">原料管理</a></dd>
                            <dd><a href="/Purch/ShowPurch">采购管理</a></dd>
                            <dd><a href="/Allocate/ShowAllocateList">调拨管理</a></dd>
                           @*  <dd><a href="javascript:">返库管理</a></dd> *@
                        
                        </dl>
                    </li>

                    <li class="layui-nav-item layui-nav-itemed">
                        <a class="" href="javascript:">BOM管理</a>
                        <dl class="layui-nav-child">
                            <dd><a href="/Bom/BomIndex">显示</a></dd>
                            <dd><a href="/Bom/BomAdd">添加</a></dd>
                            <dd><a href="">编辑</a></dd>
                   
                          
                        </dl>
                    </li>
                    <li class="layui-nav-item layui-nav-itemed">
                        <a href="javascript:;">生产管理</a>
                        <dl class="layui-nav-child">         
                           @*  <dd><a href="javascript:">生产大屏</a></dd> *@
                            <dd><a href="/Manufacture/OrderTable">生产订单</a></dd>
                            <dd><a href="/Manufacture/CreateProductionPlan">创建生产计划</a></dd>
                            <dd><a href="/Productionplanning/ShowProductionplanning">生产计划</a></dd>
                            <dd><a href="/Manufacture/ShowWorkOrder">生产工单</a></dd>
                            <dd><a href="/ProcessTasks/ShowProcessTasks">工序任务</a></dd>
                            <dd><a href="/ProcessTasks/ShowReportingList">报工记录</a></dd>
                        </dl>
                    </li>

                    <li class="layui-nav-item layui-nav-itemed">
                        <a href="javascript:;">工艺工序管理</a>
                        <dl class="layui-nav-child">         
                            <dd><a href="/Process/ShowProcess">工艺管理</a></dd>
                            <dd><a href="/ProcessProcedures/ShowProductionProcess">工序管理</a></dd>
                        </dl>
                    </li>

                    <li class="layui-nav-item layui-nav-itemed">
                        <a class="" href="javascript:">质检管理</a>
                        <dl class="layui-nav-child">
                            <dd><a href="/Quality/MaterialTable">原料质检</a></dd>
                            @* <dd><a href="javascript:">过程质检</a></dd> *@
                            <dd><a href="/Quality/QgroupPinShow">质检方案</a></dd>
                            <dd><a href="/Quality/QualityinspectionShow">质检项目</a></dd>
                            <dd><a href="/Quality/ReInfIndexShow">复检管理</a></dd>
                            <dd><a href="/Quality/QgroupIndexShow">质检组</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item layui-nav-itemed">
                        <a class="" href="javascript:">仓库管理</a>
                        <dl class="layui-nav-child">
                            <dd><a href="/Warehouse/WarehouseShow">仓库管理</a></dd>
                            <dd><a href="/Warehouse/ReservoirsShow">库区管理</a></dd>
                            <dd><a href="/Warehouse/WarehouseShowBin">库位管理</a></dd>
                            <dd><a href="/Warehouse/FinishedProductShow">成品管理</a></dd>
                            <dd><a href="/Warehouse/InventoryShow">入库管理</a></dd>
                            <dd><a href="/Warehouse/OutInventoryShow">出库管理</a></dd>
                            <dd><a href="/Warehouse/PickingAdd">生产领料管理</a></dd>
                            <dd><a href="/Warehouse/TransferShow">转库管理</a></dd>
                        </dl>
                    </li>

                    <li class="layui-nav-item layui-nav-itemed">
                        <a class="" href="javascript:">车间机床管理</a>
                        <dl class="layui-nav-child">
                            <dd><a href="/ShopMachine/Workshop">车间管理</a></dd>
                            <dd><a href="/ShopMachine/Device">机床管理</a></dd>
                        </dl>
                    </li>

                    <li class="layui-nav-item layui-nav-itemed">
                        <a class="" href="javascript:">工人工时管理</a>
                        <dl class="layui-nav-child">
                            <dd><a href="/WWHours/WWorkingHoursView">工人工时管理</a></dd>
                            <dd><a href="/WWHours/WorkerListView">工人列表</a></dd>
                        </dl>
                    </li>

                    <li class="layui-nav-item layui-nav-itemed">
                        <a class="" href="javascript:">系统管理</a>
                        <dl class="layui-nav-child">
                            <dd><a href="/User/MenuShow">菜单显示</a></dd>
                            <dd><a href="/User/MenuAdd">添加菜单</a></dd>
                            <dd><a href="/User/UserAdd">添加员工</a></dd>
                            <dd><a href="/User/Role">添加角色</a></dd>
                            <dd><a href="/User/UseRoleAdd">用户分配角色</a></dd>
                        </dl>
                    </li>
                </ul>
            </div>
        </div>
        <div class="layui-body">
            @RenderBody()

        </div>
    </div>

    <script>
        //JS
        layui.use(['element', 'layer', 'util'], function(){
          var element = layui.element;
          var layer = layui.layer;
          var util = layui.util;
          var $ = layui.$;

          //头部事件
          util.event('lay-header-event', {
            menuLeft: function(othis){ // 左侧菜单事件
              layer.msg('展开左侧菜单的操作', {icon: 0});
            },
            menuRight: function(){  // 右侧菜单事件
              layer.open({
                type: 1,
                title: '更多',
                content: '<div style="padding: 15px;">处理右侧面板的操作</div>',
                area: ['260px', '100%'],
                offset: 'rt', // 右上角
                anim: 'slideLeft', // 从右侧抽屉滑出
                shadeClose: true,
                scrollbar: false
              });
            }
          });
        });
    </script>
</body>
</html>

